package cn.easier.activity.console.service.impl;

import cn.easier.activity.console.repository.ActivityInfoRepository;
import cn.easier.activity.console.repository.PrizeClawImageMessageRepository;
import cn.easier.activity.console.service.ActivityPrizeClawService;
import cn.easier.activity.web.entity.PrizeClawImageMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * 抓娃娃图片ServiceImpl
 */
@Service
@Transactional
public class ActivityPrizeClawServiceImpl implements ActivityPrizeClawService {

    private static Logger logger = LoggerFactory.getLogger(ActivityPrizeClawServiceImpl.class);

    //活动状态
    private static final Integer RELEASE_STATE = 1;
    private static final Integer DELETE_STATE = 2;

    @Autowired
    ActivityInfoRepository activityInfoRepository;

    @Autowired
    PrizeClawImageMessageRepository prizeClawImageMessageRepository;


    @Override
    public PrizeClawImageMessage findByOne(Integer activityInfoId) {
        return prizeClawImageMessageRepository.findAllByActivityInfoId(activityInfoId);
    }
}
